package com.slg.android.manyanime.bean;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;

/**
 * Created by E540 on 2015/3/13.
 */
public class User {
    private String id;
    private String username;
    private String nickname;
    private String mobile;
    private String headPic;
    private String sex;//1男 2女
    private String sign;//签名
    private String birthday;
    private String showLike;//1公开收藏
    private String showComment;//1公开评论
    private String watchedNum;
    private String accessKey;
    private String pfType;
    private String pfId;
    private String HXUsername;
    private String HXPassword;
    private String commentNum;
    private String replyNum;
    private String groupNum;

    public void parseData(JSONObject json) {
        try {
            this.id = json.getString("id");
            this.username = json.getString("username");
            this.nickname = json.getString("nickname");
            this.mobile = json.getString("mobile");
            this.headPic = json.getString("head_pic");
            this.sex = json.getString("sex");
            this.sign = json.getString("sign");
            this.birthday = json.getString("birthday");
            this.showLike = json.getString("show_like");
            this.showComment = json.getString("show_comment");
            this.watchedNum = json.getString("watched_num");
            this.accessKey = json.getString("accesskey");
            this.pfType = json.getString("pf_type");
            this.pfId = json.getString("pf_id");
            this.HXUsername = json.getString("hx_username");
            this.HXPassword = json.getString("hx_password");
            this.commentNum = json.getString("comment_num");
            this.replyNum = json.getString("reply_num");
            this.groupNum = json.getString("group_num");

        } catch (JSONException e) {
            e.printStackTrace();
        }
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getShowLike() {
        return showLike;
    }

    public void setShowLike(String showLike) {
        this.showLike = showLike;
    }

    public String getShowComment() {
        return showComment;
    }

    public void setShowComment(String showComment) {
        this.showComment = showComment;
    }

    public String getWatchedNum() {
        return watchedNum;
    }

    public void setWatchedNum(String watchedNum) {
        this.watchedNum = watchedNum;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getPfType() {
        return pfType;
    }

    public void setPfType(String pfType) {
        this.pfType = pfType;
    }

    public String getPfId() {
        return pfId;
    }

    public void setPfId(String pfId) {
        this.pfId = pfId;
    }

    public String getHXUsername() {
        return HXUsername;
    }

    public void setHXUsername(String HXUsername) {
        this.HXUsername = HXUsername;
    }

    public String getHXPassword() {
        return HXPassword;
    }

    public void setHXPassword(String HXPassword) {
        this.HXPassword = HXPassword;
    }

    public String getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(String commentNum) {
        this.commentNum = commentNum;
    }

    public String getReplyNum() {
        return replyNum;
    }

    public void setReplyNum(String replyNum) {
        this.replyNum = replyNum;
    }

    public String getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(String groupNum) {
        this.groupNum = groupNum;
    }
}
